home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib9
/
v_11_09
/
1109101a
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-11-01
|
281 b
|
24 lines
class string
{
public:
string(const string &);
// ...
operator const char *();
size_t length();
// ...
private:
char *str;
size_t len;
};
inline string::operator const char *()
{
return str;
}
inline size_t string::length()
{
return len;
}